<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>头像上传</title>
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../lib/jq-module/zyupload/zyupload-1.0.0.min.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>


<form action="/admins/upload" method="post" enctype="multipart/form-data">
    <p style="font-size: 150%"><i class="layui-icon" style="font-size: 40px;color: #1e9fff">&#xe67c;</i><input  type="file" name="file"/></p>
    <p style="font-size: 150%"><input type="submit" id="submit333" value="提交"></p>
</form>

<!--<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">-->
<!--    <legend>常规使用：普通图片上传</legend>-->
<!--</fieldset>-->

<!--<div class="layui-upload">-->
<!--    <button type="button" class="layui-btn" id="test1" name="file">上传图片</button>-->
<!--    <div class="layui-upload-list">-->
<!--        <img class="layui-upload-img" id="demo1">-->
<!--        <p id="demoText"></p>-->
<!--    </div>-->
<!--    <div style="width: 95px;">-->
<!--        <div class="layui-progress layui-progress-big" lay-showpercent="yes" lay-filter="demo">-->
<!--            <div class="layui-progress-bar" lay-percent=""></div>-->
<!--        </div>-->
<!--    </div>-->
<!--</div>-->

<!--<a name="list-progress"> </a>-->

<!--<div style="margin-top: 10px;">-->
<!--    &lt;!&ndash; 示例-970 &ndash;&gt;-->
<!--</div>-->

<script src="../lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
<script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="../lib/jq-module/zyupload/zyupload-1.0.0.min.js" charset="utf-8"></script>

<script>

    layui.use(['form','jquery'], function () {
        var $ = layui.jquery,
            layer = layui.layer;


        // $("#submit333").click(function (res) {
        //     if (res.code === 200) {
        //         console.log(res.msg)
        //         layer.msg(res.msg, {icon: 1,time:3000})
        //     } else {
        //         layer.msg(res.msg, {icon: 2});
        //     }
        // })



    });
</script>
</body>
</html>